<nz-input [(ngModel)]="menu.name" [nzPlaceHolder]="'菜单名称'" style="margin-bottom:20px;width:99%"></nz-input>
<div nz-row style="margin-bottom:14px;">
  <nz-select style="width: 99%;" [(ngModel)]="menu.type" [nzPlaceHolder]="'菜单类型'">
    <nz-option *ngFor="let type of menuTypes" [nzLabel]="type.label" [nzValue]="type.value">
    </nz-option>
  </nz-select>
</div>
<nz-input [(ngModel)]="menu.href" [nzPlaceHolder]="'路径'" style="margin-bottom:20px;width:99%">
  <ng-template #addOnBefore>http://.../v1/</ng-template>
</nz-input>
<nz-input [(ngModel)]="menu.sort" [nzPlaceHolder]="'排序'" style="margin-bottom:20px;width:99%"></nz-input>
<nz-input [(ngModel)]="menu.remark" nzType="textarea" [nzAutosize]="autosize" nzPlaceHolder="菜单描述" style="margin-bottom:20px;width:99%"></nz-input>


<div nz-row [nzType]="'flex'" [nzJustify]="'end'">
  <button nz-button [nzType]="'primary'" right [nzLoading]="uploading"  [disabled]="!menu.name || !menu.href" style="margin-top: 16px" (click)="onSubmit()">
    {{ menu.name && menu.href? '添加' : '请输入必须内容' }}
  </button>
</div>
